<style>
    .edui-editor {
        z-index: 1 !important;
    }
</style>
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form" autocomplete="off">
        <div class="layui-form-item">
            <label class="layui-form-label">机器编号</label>
            <div class="layui-input-block">
                <input type="text" name="machine_id" class="layui-input" lay-verify="required" placeholder="请输入机器编号"
                       value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">设备snCode</label>
            <div class="layui-input-block">
                <input type="text" name="snCode" class="layui-input" lay-verify="required" placeholder="请输入设备sn"
                       value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">机器名称</label>
            <div class="layui-input-block">
                <input type="text" name="machine_name" class="layui-input" lay-verify="required" placeholder="请输入机器名称"
                       value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">省/市/区</label>
            <div class="layui-input-inline">
                <div id="province"></div>
                <input type="hidden" name="province_name" id="province_name">
            </div>
            <div class="layui-input-inline">
                <div id="city"></div>
                <input type="hidden" name="city_name" id="city_name">
            </div>
            <div class="layui-input-inline">
                <div id="area"></div>
                <input type="hidden" name="area_name" id="area_name">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">详情地址</label>
            <div class="layui-input-block">
                <div id="address"></div>
                <input type="hidden" id="lat" name="lat">
                <input type="hidden" id="lng" name="lng">
            </div>
        </div>
        <div class="layui-form-item" style="display: none">
            <label class="layui-form-label">下料比例</label>
            <div class="layui-input-block">
                <input type="text" name="d_value" class="layui-input" placeholder="请输入下料比例"
                       value="{$row.d_value|default=''}">
            </div>
        </div>
        <div class="layui-form-item ">
            <label class="layui-form-label required">所在分组</label>
            <div class="layui-input-inline">
                <div id="machine_cate"></div>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
